﻿<UserControl x:Class="Project.FunctionaryRegisterContent" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:CustomControls="clr-namespace:CustomControls;assembly=CustomControls"
             mc:Ignorable="d" 
              d:DesignHeight="710" d:DesignWidth="800" xmlns:my="clr-namespace:CustomControls;assembly=CustomControls">
    <Grid Height="710" Width="800" Name="Content">
        <GroupBox Header="Datos personales" Height="297" HorizontalAlignment="Left" Margin="41,54,0,0" Name="groupBox1" VerticalAlignment="Top" Width="720">
            <Grid>
                <Label Content="Nombre:" Height="28" HorizontalAlignment="Left" Margin="24,14,0,0" Name="lblName" VerticalAlignment="Top" />
                <Label Content="Apellido paterno:" Height="28" HorizontalAlignment="Left" Margin="23,53,0,0" Name="lblLastName" VerticalAlignment="Top" />
                <Label Content="Apellido materno:" Height="28" HorizontalAlignment="Left" Margin="23,90,0,0" Name="lblMiddleName" VerticalAlignment="Top" />
                <my:MaskTextBox DataType="RegEx" RegEx="^[A-Za-z'áéíóúÁÉÍÓÚÑñ\s]+$" Height="23" HorizontalAlignment="Left" Margin="91,14,0,0" Name="tbName" VerticalAlignment="Top" Width="196" MaxLength="50" TextChanged="tbName_TextChanged" />
                <my:MaskTextBox  DataType="RegEx" RegEx="^[A-Za-z'áéíóúÁÉÍÓÚÑñ\s]+$" MaxLength="50" Height="23" HorizontalAlignment="Left" Margin="131,53,0,0" Name="tbLastName" VerticalAlignment="Top" Width="196" TextChanged="tbLastName_TextChanged" />
                <my:MaskTextBox  DataType="RegEx" RegEx="^[A-Za-z'áéíóúÁÉÍÓÚÑñ\s]+$" MaxLength="50" Height="23" HorizontalAlignment="Left" Margin="131,90,0,0" Name="tbMiddleName" VerticalAlignment="Top" Width="196" TextChanged="tbMiddleName_TextChanged" />
                <Label Content="CI:" Height="28" HorizontalAlignment="Left" Margin="376,90,0,0" Name="lblCI" VerticalAlignment="Top" />
                <my:MaskTextBox  DataType="RegEx" RegEx="^[0-9\s]+$" Height="23" HorizontalAlignment="Left" Margin="403,90,0,0" Name="tbCI" VerticalAlignment="Top" Width="123" PreviewKeyDown="tbCI_PreviewKeyDown" MaxLength="10" TextChanged="tbCI_TextChanged" />
                <Label Content="Fecha de Nacimiento:" Height="28" HorizontalAlignment="Left" Margin="24,132,0,0" Name="lblAge" VerticalAlignment="Top" />
                <Label Content="Sexo:" Height="28" HorizontalAlignment="Left" Margin="377,14,0,0" Name="lblGender" VerticalAlignment="Top" />
                <RadioButton Content="Varón" Height="16" HorizontalAlignment="Left" IsChecked="False" Margin="423,14,0,0" Name="rbtnMale" VerticalAlignment="Top" />
                <RadioButton Content="Mujer" Height="16" HorizontalAlignment="Left" IsChecked="False" Margin="478,14,0,0" Name="rbtnFemale" VerticalAlignment="Top" />
                <Label Content="Direccion: " Height="28" HorizontalAlignment="Left" Margin="26,170,0,0" Name="lblAddress" VerticalAlignment="Top" />
                <my:MaskTextBox  DataType="RegEx" RegEx="^[0-9A-Za-z'#áéíóúÁÉÍÓÚÑñ\s]+$" MaxLength="50" Height="23" HorizontalAlignment="Left" Margin="91,172,0,0" Name="tbAddress" VerticalAlignment="Top" Width="250" />
                <Label Content="Teléfono:" Height="28" HorizontalAlignment="Left" Margin="376,53,0,0" Name="lblPhone" VerticalAlignment="Top" />
                <my:MaskTextBox Height="23" HorizontalAlignment="Left" Margin="441,53,0,0" Name="tbPhone" VerticalAlignment="Top" Width="136" PreviewKeyDown="tbPhone_PreviewKeyDown" MaxLength="10"/>
                <my:ValidDatePicker Height="29" HorizontalAlignment="Left" Margin="152,127,0,0" Name="dpBirthday" VerticalAlignment="Top" Width="115" DisplayDateStart="01/01/1900"/>
                <Label Content="Lugar de Nacimiento:" Height="28" HorizontalAlignment="Left" Margin="378,134,0,0" Name="label1" VerticalAlignment="Top" />
                <my:MaskTextBox  DataType="RegEx" RegEx="^[A-Za-z'áéíóúÁÉÍÓÚÑñ\s]+$" MaxLength="50" Height="23" HorizontalAlignment="Left" Margin="496,131,0,0" Name="tbLugarNacimiento" VerticalAlignment="Top" Width="169" />
                <Label Content="Grupo Sanguíneo:" Height="28" HorizontalAlignment="Left" Margin="26,209,0,0" Name="label2" VerticalAlignment="Top" />
                <my:ValidationComboBox Height="23" HorizontalAlignment="Left" Margin="132,209,0,0" Name="cbType" VerticalAlignment="Top" Width="53" SelectedValuePath="Content">
                    <ComboBoxItem Content="O" />
                    <ComboBoxItem Content="A" />
                    <ComboBoxItem Content="B" />
                    <ComboBoxItem Content="AB" />
                </my:ValidationComboBox>
                <Label Content="RH" Height="28" HorizontalAlignment="Left" Margin="197,209,0,0" Name="label3" VerticalAlignment="Top" />
                <my:ValidationComboBox Height="23" HorizontalAlignment="Left" Margin="219,209,0,0" Name="cbRH" VerticalAlignment="Top" Width="48" SelectedValuePath="Content">
                    <ComboBoxItem Content="+" />
                    <ComboBoxItem Content="-" />
                </my:ValidationComboBox>
                <Label Content="*" Height="28" HorizontalAlignment="Left" Margin="13,14,0,0" Name="label8" VerticalAlignment="Top" />
                <Label Content="*" Height="28" HorizontalAlignment="Left" Margin="12,53,0,0" Name="label9" VerticalAlignment="Top" />
                <Label Content="*" Height="28" HorizontalAlignment="Left" Margin="13,172,0,0" Name="label10" VerticalAlignment="Top" />
                <Label Content="*" HorizontalAlignment="Left" Margin="13,135,0,0" Name="label11" Height="28" VerticalAlignment="Top" />
                <Label Content="*" Height="28" HorizontalAlignment="Left" Margin="366,14,0,0" Name="label12" VerticalAlignment="Top" />
                <Label Content="*" Height="28" HorizontalAlignment="Left" Margin="366,131,0,0" Name="label13" VerticalAlignment="Top" />
                <Label Content="*" Height="28" HorizontalAlignment="Left" Margin="365,92,0,0" Name="label14" VerticalAlignment="Top" />
                <Label Content="*" Height="28" HorizontalAlignment="Left" Margin="13,209,0,0" Name="label15" VerticalAlignment="Top" />
                <Label Content="*" Height="28" HorizontalAlignment="Left" Margin="366,170,0,0" Name="label16" VerticalAlignment="Top" />
                <Label Content="Estado Civil:" Height="28" HorizontalAlignment="Left" Margin="378,170,0,0" Name="label20" VerticalAlignment="Top" />
                <my:ValidationComboBox Height="23" HorizontalAlignment="Left" Margin="455,170,0,0" Name="cbCompCivilStatus" SelectedIndex="-1" SelectedValuePath="Content" VerticalAlignment="Top" Width="162">
                    <ComboBoxItem Content="Soltero(a)" />
                    <ComboBoxItem Content="Casado(a)" />
                    <ComboBoxItem Content="Divorciado(a)" />
                    <ComboBoxItem Content="Conviviente" />
                    <ComboBoxItem Content="Separado(a)" />
                    <ComboBoxItem Content="Viudo(a)" />
                </my:ValidationComboBox>
            </Grid>
        </GroupBox>
        <GroupBox Header="Datos de empleo" Height="140" HorizontalAlignment="Left" Margin="40,371,0,0" Name="groupBox2" VerticalAlignment="Top" Width="512">
            <Grid>
                <Label Content="Cargo:" Height="28" HorizontalAlignment="Left" Margin="24,20,0,0" Name="label4" VerticalAlignment="Top" />
                <my:ValidationComboBox Height="23" HorizontalAlignment="Left" Margin="70,17,0,0" Name="cbCharge" VerticalAlignment="Top" Width="168" ToolTip="Elija un cargo" SelectedValuePath="Content">
                    <ComboBoxItem Content="Director" />
                    <ComboBoxItem Content="Encargado Puerta" />
                    <ComboBoxItem Content="Policia" />
                    <ComboBoxItem Content="Psicologo" />
                    <ComboBoxItem Content="Secretario" />
                    <ComboBoxItem Content="Visitador" />
                </my:ValidationComboBox>
                <Label Content="Grado:" Height="28" HorizontalAlignment="Left" Margin="25,57,0,0" Name="label5" VerticalAlignment="Top" />
                <Label Content="Fecha de Alta:" HorizontalAlignment="Left" Margin="265,21,0,0" Name="label6" Height="28" VerticalAlignment="Top" />
                <Label Height="28" HorizontalAlignment="Left" Margin="357,20,0,0" Name="JoinDate" VerticalAlignment="Top" />
                <my:ValidationComboBox Height="23" HorizontalAlignment="Left" Margin="70,57,0,0" Name="cbGrade" VerticalAlignment="Top" Width="168" ToolTip="Elija un Grado" SelectedValuePath="Content">
                    <ComboBoxItem Content="Sub Oficial Mayor" />
                    <ComboBoxItem Content="Sub Oficial Primero" />
                    <ComboBoxItem Content="Sub Oficial Segundo" />
                    <ComboBoxItem Content="Sargento Primero" />
                    <ComboBoxItem Content="Sargento Segundo" />
                    <ComboBoxItem Content="Cabo" />
                    <ComboBoxItem Content="Dragoniante" />
                    <ComboBoxItem Content="Sub Teniente" />
                    <ComboBoxItem Content="Teniente" />
                    <ComboBoxItem Content="Capitan" />
                    <ComboBoxItem Content="Mayor" />
                    <ComboBoxItem Content="Teniente Coronel" />
                    <ComboBoxItem Content="Coronel" />
                </my:ValidationComboBox>
                <Label Content="*" Height="28" HorizontalAlignment="Left" Margin="13,20,0,0" Name="label17" VerticalAlignment="Top" />
                <Label Content="*" Height="28" HorizontalAlignment="Left" Margin="13,57,0,0" Name="label18" VerticalAlignment="Top" />
            </Grid>
        </GroupBox>
        <Button Content="REGISTRAR" Height="55" HorizontalAlignment="Left" Margin="513,581,0,0" Name="Save" VerticalAlignment="Top" Width="133" Click="Save_Click" />
        <GroupBox Header="Datos de Acceso al sistema" Height="127" HorizontalAlignment="Left" Margin="41,531,0,0" Name="groupBox3" VerticalAlignment="Top" Width="332">
            <Grid>
                <Label Content="Usuario:" FontSize="12"  Height="21" HorizontalAlignment="Left" Margin="20,8,0,0" Name="label21" VerticalAlignment="Top" />
                <Label Content="" FontSize="12" FontWeight="Bold"  Height="21" HorizontalAlignment="Left" Margin="71,8,0,0" Name="lblUserName" VerticalAlignment="Top" />
                <Label Content="* Contraseña:" FontSize="12" FontWeight="Normal" Height="21" HorizontalAlignment="Left" Margin="11,30,0,0" Name="label22" VerticalAlignment="Top" />
                <PasswordBox MaxLength="16" Height="23" HorizontalAlignment="Left" Margin="86,29,0,0" Name="tbPassword" VerticalAlignment="Top" BorderBrush="#BABABA" Width="191" PasswordChanged="tbPassword_PasswordChanged" />
                <CustomControls:MaskTextBox MaxLength="16" Height="23" Visibility="Hidden" HorizontalAlignment="Left" Margin="86,29,0,0" Name="tbPasswordShowed" VerticalAlignment="Top" Width="191" TextChanged="tbPasswordShowed_TextChanged" />
                <CheckBox IsChecked="False" Content="Mostrar contraseña" Height="16" HorizontalAlignment="Left" Margin="20,58,0,0" Name="chkShowPass" VerticalAlignment="Top" Checked="chkShowPass_Checked" Unchecked="chkShowPass_Unchecked"  />
            </Grid>
        </GroupBox>
        <Label Content="*" FontSize="18" Foreground="Red" Height="16" HorizontalAlignment="Left" Margin="234,24,0,0" Name="label40" VerticalAlignment="Top" />
        <Label Content="Todos los campos marcados con" Foreground="Gray" Height="16" HorizontalAlignment="Left" Margin="58,24,0,0" Name="label41" VerticalAlignment="Top" />
        <Label Content="son obligatorios" Foreground="Gray" Height="20" HorizontalAlignment="Left" Margin="245,24,0,0" Name="label42" VerticalAlignment="Top" />
    </Grid>
</UserControl>
